package com.etbsms.util;

import java.util.HashMap;
import java.util.Map;

import com.etbsms.domain.Role;


public class Constants {	
	
	public static String INDEX_ = "";
	public static String INDEX_HOME = "index_home";
	public static String INDEX_CHOSEROLE = "choose_role";
	
	

	public static String PAGE_INDEX = "index";
	

	public static String PAGE_USERADD = "useradd";
	public static String PAGE_USERMDY = "usermdy";
	public static String PAGE_REPORT  = "report";
	public static String PAGE_REPORTLST  = "reportlst";

	public static String PAGE_FORMINP = "forminp";
	public static String PAGE_REAAINP = "reaainp";
	
	
	public static String PAGE_FORMSEL = "formsel";
	public static String PAGE_ADMINFORMSEL = "adminformsel";
	
	
	
	public static String PAGE_FORMOWN = "formown";
	

	public static String PAGE_FORMCHRKLST 		= "formchecklst";
	//public static String PAGE_FORMCHRKLSTFORM = "formchecklstform";
	
	public static String PAGE_FORMCHRKOWN = "formcheckown";
	
	public static String PAGE_CODECOUNTRY = "codeCountrySel";
	public static String PAGE_CODEPLANT   = "codePlantSel";
	public static String PAGE_FORMOWNLST  = "formownlst";
	public static String PAGE_FORMOWNVEW  = "formownvew";
	public static String PAGE_FORMPREVEW  = "formprevew";
	
	public static String PAGE_REAAINP_LIST= "reaainp_list";
	

	public static String PAGE_FORMSELLST  = "formsellst";
	public static String PAGE_FORMCHRK_LIST = "formsellst_list";
	public static String PAGE_OPTIONPRVT  = "optionprvt";
	public static String PAGE_OPTIONPPWD  = "optionppwd";
	
	
	public static String LIST_USERMDY = "usermdylist";
	
	public static int MAIN_MENU_ADMIN  			= 1;
	public static int MAIN_MENU_FORMS  			= 2;
	public static int MAIN_MENU_FORMSCHKR  	= 3;
	
	public static int MAIN_MENU_OPTION 			= 9;

	public static int FLOW_TEMP = 0;	/** 表單輸入暫存**/
	public static int FLOW_KENI = 1;	/** 表單輸入完成**/
	public static int FLOW_RESA = 2;	/** 表單研析完成**/
	
	public static int FLOW_ALL 	= 9;
	public static enum FLOW_TYPE{
		eq,ge
	}
	
	

	//public static Role CURRENT_ROLE;

	public static Map<Integer,Role> CURRENT_ROLE_MAP = new HashMap<Integer,Role>();
	

	public static String PAGE_CODECNY = "codecny";
	public static String PAGE_CODEPLT = "codeplt";
	public static String PAGE_CODELNG = "codelan";
	
	public static String ROLE_ROOT = "ROLE_ROOT";		/** 管理者**/	
	public static String ROLE_KEYR = "ROLE_KEYR";		/** 輸入者**/
	public static String ROLE_INTR = "ROLE_INTR";		/** 研析者**/
	
	
	public static int LOGIN_ERROR_PASWOD = 1;
	public static int LOGIN_ERROR_EXPIRE = 2;
	

	public static int ERRORMSG_SUCCES = 0;	//成功
	public static int ERRORMSG_PASWOD = 1;	//密碼不符
	public static int ERRORMSG_SYSTEM = 2;	//系統錯誤
	
	public static enum REPORT_TYPE{
		all,done,notyet
	}
	
	public static int REPORT_STATE_NOTYET = 0;
	public static int REPORT_STATE_DONE   = 9;
	
	
	public static long LOCKED_FAILED_TIME = 1800000;	//30分鐘
}
